<template>
	<view>
		<view class="content">
			<u-grid :col="3">
				<u-grid-item v-for="(item, k) in gridList" :key="k">
					<navigator :url="item.url" hover-class="none" class="gitem">
						<image :src="item.img" class="img" mode="widthFix"></image>
						<view class="name">{{ item.name }}</view>
					</navigator>
				</u-grid-item>
			</u-grid>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				gridList: [

					{
						name: '作用在管柱上的截面力',
						img: '/static/images/manage/a-1.png',
						url: "a"
					},
					{
						name: '举升装置对管柱施加的力',
						img: '/static/images/manage/a-2.png',
						url: "b"
					},
					{
						name: '拉（压）应力',
						img: '/static/images/manage/a-3.png',
						url: "c"
					},
					{
						name: '剪切强度',
						img: '/static/images/manage/a-4.png',
						url: "d"
					}
				]
			}
		},
		methods: {
			openPage(path) {
				this.$u.route({
					url: path
				})
			}
		}
	}
</script>

<style>
	.gitem {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;

		.img {
			width: 54rpx;
			height: 54px;
			margin-bottom: 26rpx;
		}

		font-size: 28rpx;
		font-family: PingFang SC;
		color: #030305;
		line-height: 36rpx;
	}

	.u-grid-item {
		border: 1px solid #ccc;
		height: 100px;
	}
</style>